Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / app / src / main / java / com / geeksville / mesh / service / BootCompleteReceiver.kt

Displaying Raw • Download

app/src/main/java/com/geeksville/mesh/service/BootCompleteReceiver.kt 78274c792318331b11ab64cd28e58e829875b8c2 (78274c79) Text, 1.34 KB

T8b949e/*
* Copyright (c) 2025 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

Tff7b72package T7ee787com.geeksville.mesh.service

Tff7b72import T7ee787android.content.BroadcastReceiver
Tff7b72import T7ee787android.content.Context
Tff7b72import T7ee787android.content.Intent

T8b949e/** This receiver starts the MeshService on boot if a device was previously connected. */
Tff7b72class T56d364BootCompleteReceiver Tb4b4b4: Te6edf3BroadcastReceiverTb4b4b4(Tb4b4b4) Tb4b4b4{

Tff7b72override Tff7b72fun Td2a8ffonReceiveTb4b4b4(Te6edf3contextTb4b4b4: Te6edf3ContextTb4b4b4, Te6edf3intentTb4b4b4: Te6edf3IntentTb4b4b4) Tb4b4b4{
Tff7b72if Tb4b4b4(Te6edf3IntentTb4b4b4.Te6edf3ACTION_BOOT_COMPLETED Tff7b72!Tff7b72= Te6edf3intentTb4b4b4.Te6edf3actionTb4b4b4) Tb4b4b4{
Tff7b72return
Tb4b4b4}
Tff7b72val Te6edf3prefs Tff7b72= Te6edf3contextTb4b4b4.Te6edf3getSharedPreferencesTb4b4b4(Ta5d6ff"Ta5d6ffmesh-prefsTa5d6ff"Tb4b4b4, Te6edf3ContextTb4b4b4.Te6edf3MODE_PRIVATETb4b4b4)
Tff7b72if Tb4b4b4(Tff7b72!Te6edf3prefsTb4b4b4.Te6edf3containsTb4b4b4(Ta5d6ff"Ta5d6ffdevice_addressTa5d6ff"Tb4b4b4)Tb4b4b4) Tb4b4b4{
Tff7b72return
Tb4b4b4}

Te6edf3MeshServiceTb4b4b4.Te6edf3startServiceTb4b4b4(Te6edf3contextTb4b4b4)
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.07s